package com.yubest.designpattern.create.singleton;

/**
 * 饿汉式-线程安全
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 10:40
 */
public class HungrySingleton {

    private static HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
